using System;

namespace jSLCore.Client.Presentation.Controls
{
    public class HyperlinkButton 
#if SILVERLIGHT
        : System.Windows.Controls.HyperlinkButton
#else
 :  System.Windows.Controls.TextBlock
#endif

    {
        public HyperlinkButton()
        {
            MouseLeftButtonUp += (sender, args) => InvokeClick();
        }

        public new event EventHandler Click;

        public void InvokeClick()
        {
            EventHandler handler = Click;
            if (handler != null) handler(this, EventArgs.Empty);
        }
    }
}